<?php /* Smarty version 2.6.26, created on 2014-01-21 14:58:29
         compiled from bankcard.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'substr', 'bankcard.html', 16, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="main fn-clear">
    	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "safe_menu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

        <div class="safe-content fn-left">
        	<h1>银行卡绑定</h1>
            <table class="edit-tab bankcard-list">
            	<tr>
                	<td align="right">已绑定银行卡：</td>
                    <td>
                    	<ul class="fn-clear">
                        <?php $_from = $this->_tpl_vars['banks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['bank']):
?>
                    	<li>
                            <!-- <label><a class="icon-<?php echo $this->_tpl_vars['bank']['en_name']; ?>
" title="<?php echo $this->_tpl_vars['bank']['bank_name']; ?>
"><?php echo $this->_tpl_vars['bank']['bank_name']; ?>
</a></label> -->
                            <label><?php echo $this->_tpl_vars['bank']['card_area']; ?>
&nbsp;&nbsp;&nbsp;&nbsp;尾号&nbsp;&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['bank']['card_number'])) ? $this->_run_mod_handler('substr', true, $_tmp, "-4") : substr($_tmp, "-4")); ?>
</label>
                            <span class="limit">限额10000元/次</span><span class="edit"><a href="javascript:void(0);" onclick="delete_card(<?php echo $this->_tpl_vars['bank']['id']; ?>
)">删除</a></span></li>
                        <?php endforeach; endif; unset($_from); ?>
                    </ul>
                    </td>
                </tr>
                <!--<tr>
                	<td></td>
                	<td><a href="" class="btn-orange">添加银行卡</a></td>
                </tr>-->
                <tr>
                	<td align="right">开户姓名：</td>
                	<td><input name="" type="text" id="card_name"/></td>
                </tr>
                <tr>
                    <td align="right">开户行：</td>
                    <td><input type="text" maxlength="255" id="card_area"/><label style="width:300px;">例：中国农业银行余杭支行</label></td>
                </tr>
                <tr>
               	  <td align="right">银行卡号：</td>
                	<td><input type="text" maxlength="50" id="card_number"/><label><a id="card_class" class="fn-hide" title=""></a></label></td>
                </tr>
                <tr>
                	<td align="right"></td>
                	<td><a href="javascript:void(0);" class="btn-orange" id="submit_bind">添加银行卡</a></td>
                </tr>
            </table>
        </div>
</div>
<script src="<?php echo $this->_tpl_vars['site_url']; ?>
/statics/js/bind_card.js"></script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>